package com.situ.mall.mapper;

import com.situ.mall.pojo.Product;
import com.situ.mall.pojo.query.ProductQuery;
import com.situ.mall.pojo.vo.ProductVO;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> selectAll(ProductQuery productQuery);

    Integer deleteAll(Integer[] ids);

    List<Product> selectByCategoryId(Integer categoryId);

    ProductVO selectVOByPrimaryKey(Integer id);

    List<Product> selectByName(String name);

    List<ProductVO> selectAllProduct(Integer id);
}